package com.example.j2eeapp.dao;

import com.example.j2eeapp.commons.dao.GenericDao;
import com.example.j2eeapp.domain.UserEntity;

/**
 * Data access object interface to work with User entity database operations.
 * There should not be any logic in here, that is what the services are for.
 * 
 */
public interface UserDao extends GenericDao<UserEntity, Long>{

	/**
	 * Queries database for username availability
	 * @param userName
	 * @return
	 */
	boolean checkAvailable(String userName);
	
	UserEntity loadUserByUserName(String userName);
	
}
